home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1240 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  952 b 

  1. Path: sky.in-berlin.de!jroger!jroger
  2. From: jroger@jroger.in-berlin.de (Sebastian Rittau)
  3. Subject: Re: Checking ports
  4. References: <65641132%agos001@pn.itnet.it>
  5. Message-ID: <620.6589T787T2530@jroger.in-berlin.de>
  6. Newsgroups: comp.sys.amiga.programmer
  7. X-Newsreader: THOR 2.22 (Amiga;UUCP) *UNREGISTERED*
  8. Date: 17 Jan 96 04:00:09 CET
  9.  
  10. In <65641132%agos001@pn.itnet.it> Stefano Agostinelli <agos001@pn.itnet.it> wrote:
  11.  
  12. >suppose program A launches program B (both at start create a public msgport)
  13. >and needs to send immediately a message to it;of course A must wait B port
  14. >creation,but given that B does not know port A name how can A know is safe
  15. >to send B the message?
  16. >Thanks in advance.
  17.  
  18. Hope, I got it right:
  19.  
  20. A wants to send B a message? What about a busy-loop:
  21.  
  22. REPEAT
  23.   Delay(5)
  24.   bport:=FindPort('bportname')
  25. UNTIL bport>0
  26.  
  27. --
  28.   // Sebastian Rittau                jroger@jroger.in-berlin.de
  29. \X/  http://www.in-berlin.de/User/jroger/index.html
  30.  
  31.